package com.twu.refactoring;

public class West implements DirectionInterface{

    private final char direction;

    public West(char direction) {
        this.direction = direction;
    }

    @Override
    public DirectionInterface turnLeft() {
        return null;
    }

    @Override
    public DirectionInterface turnRight() {
        return null;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        West west = (West) o;

        if (direction != west.direction) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return (int) direction;
    }
}
